<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<? echo html::stylesheet(array(
		'/media/css/main.css', 
		'/media/css/roundedcorners.css',
	)); ?>
	<? echo html::script(array(
		'/media/js/mootools.js',
		'/media/js/textResizeDetector.js',
                '/media/js/roundedcorners.js',
                '/media/js/calendar.js',
	)); ?>	
	
	<title><?php echo html::specialchars($title) ?></title>
</head>

<body>
<div id="maincontainer">
	<div id="headercontainer">
		<div class="innertube">
			<h1><?php echo html::specialchars($title) ?></h1>
		</div>
	</div>
	
	<div id="contentcontainer">
		<div id="contentcolumn">
			<div class="innertube">
				<?php echo $content ?>
			</div>
		</div>
	</div>

        <div id="sidebarcontainer">
            <div class="innertube">
		    <?php echo $sidebar ?>
            </div>
	</div>
	
	<div id="footercontainer">
		<?php echo $footer ?>
	</div>
</div>

<script type="text/javascript">
	var box1 = new RoundedCorners('.roundedContent', {radius: 49});
	var detect = new textResizeDetector({onChange: function(){box1.resize();}});
</script>

</body>
</html>
